import { defineComponent, ref } from 'vue'
import { Tooltip } from 'ant-design-vue'
import PropTypes from '@/utils/PropTypes'
export default defineComponent({
  name: 'componentName',
  props: {
    placement: PropTypes.any().def('topLeft'),
    text: PropTypes.any(),
  },
  setup(props) {
    return () => (
      <Tooltip placement={props.placement}>
        {{
          title: props.text,
          default: props.text,
        }}
      </Tooltip>
    )
  },
})
